﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<link href='HtmlEditor.css' rel="stylesheet" type="text/css" />
</head><body>
<table cellpadding='0' cellspacing='10' width='100%' height='100%'><tr><td rowspan='2' width='100%'><table class='MainTable' cellpadding='0' cellspacing='0' align='center' border='1' width='100%' height='100%'>
	<script language='Javascript' type='text/Javascript'>
//<![CDATA[
String.prototype.ToHTML=parent.String.prototype.ToHTML;
String.prototype.ToTextArea=parent.String.prototype.ToTextArea;
var Query=parent.fastCSharp.CreateQuery(self.location),HtmlEditor=parent.fastCSharp.Object[Query.id];
var Chars=String.fromCharCode(33,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,8364,8216,8217,8217,8220,8221,8211,8212,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,252,253,254,255);
var OK=function(Index)
	{
	var Char=Chars.charAt(Index).ToHTML();
	if(HtmlEditor.IsDesign)	HtmlEditor.PasteHtml(Char,0);
	else	{
		parent.document.getElementById(HtmlEditor.EditorHtml).focus();
		HtmlEditor.PasteText(Char,0);
		}
	HtmlEditor.ShowOver();
	};
var Over=function(Element,Index)
	{
	document.getElementById('Sample').innerHTML=Index==null?'&nbsp;':Chars.charAt(Index).ToHTML();
	Element.className=Index==null?'Disactive':'Active';
	};
for(var Cols=20,Index=0;Index<Chars.length;)
	{
	document.write('<tr>');
	for(var Col=0;Col-Cols;Index++,Col++) 
		{
		if(Index<Chars.length)	document.write("<td class='Disactive' onclick='OK("+Index+");' onmouseover='Over(this,"+Index+");' onmouseout='Over(this);'>"+Chars.charAt(Index).ToHTML()+'</td>');
		else	document.write("<td class='Empty'>&nbsp;</td>") ;
		}
	document.write('</tr>');
	}
//]]>
	</script>
</table></td><td valign='top'>
<table class='MainTable'><tr><td id='Sample' width='40' height='40' align='center' class='Sample'>&nbsp;</td></tr></table></td></tr><tr><td align='center' height='1'><button onclick='HtmlEditor.ShowOver();'>关闭</button></td></tr></table>
</body></html>
